package com.yunyao.common.constant;

/**
 * 缓存的key 常量
 *
 * @author chenyejian
 */
public class CacheConstants {
    /**
     * 状态缓存前缀
     */
    public static final String STATUS_CACHE = "cache:";
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * token redis key
     */
    public static final String TOKEN_KEY = "token:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String DICT_KEY = "dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt";

    /**
     * 用户缓存
     */
    public final static String USER_CACHE = "userCache";
    /**
     * 用户菜单缓存
     */
    public final static String USER_MENU_CACHE = "userMenuCache";
    /**
     * 用户角色缓存
     */
    public final static String USER_ROLE_CACHE = "userRoleCache";
    /**
     * 角色菜单缓存
     */
    public final static String ROLE_MENU_CACHE = "roleMenuCache";
    /**
     * 角色缓存
     */
    public final static String ROLE_CACHE = "roleCache";
    /**
     * 角色缓存
     */
    public final static String MENU_CACHE = "menuCache";
    /**
     * 组织机构
     */
    public final static String ORGANIZATION_CACHE = "organizationCache";

}
